Skip to content

fix(k8sjwt): redact sensitive claims from logs#224

Open
Kyosuke Konishi (konippi) wants to merge 1 commit into
agent-substrate:mainfrom
konippi:fix/redact-k8sjwt-claims-logs
Open

fix(k8sjwt): redact sensitive claims from logs#224
Kyosuke Konishi (konippi) wants to merge 1 commit into
agent-substrate:mainfrom
konippi:fix/redact-k8sjwt-claims-logs

Conversation

@konippi

@konippi Kyosuke Konishi (konippi) commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Part of #103.

KubernetesClaims now implements slog.LogValuer via a value receiver, so a logged copy cannot bypass redaction. Only non-sensitive claims (issuer, subject, audiences, timestamps, jti, namespace, service account, pod, node) are emitted; the secret name/UID and the resource UIDs are excluded.

  • Tests pass
  • Appropriate changes to documentation are included in the PR

@EItanya Eitan Yarmush (EItanya) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't aware of the slog.LogValuer interface before, I like the approach :)

@konippi Kyosuke Konishi (konippi) force-pushed the fix/redact-k8sjwt-claims-logs branch from 6ca696c to 521e8ce Compare June 19, 2026 01:53
@konippi

Copy link
Copy Markdown
Contributor Author

Rebased onto main to resolve the conflict from #270. Thanks for the review Eitan Yarmush (@EItanya)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants